package com.thtf.homework.service;

import com.thtf.homework.model.DataSource;

import java.util.List;

public interface DataSourceService {
    // 创建数据源
    void create(String dataSourceStruct, String dataSourceType, String dataSourceClassification, String dataSourceName,
                String dataSourceURL, String dataSourceUsername, String dataSourcePassword,
                String dataSourceMode, String dataSourceDescription);

    // 查询数据源
    List<DataSource> query(String dataSourceClassification);

    // 更新数据源
    void update(String dataSourceClassification, String dataSourceName, String dataSourceURL, String dataSourceUsername,
                String dataSourcePassword, String dataSourceMode, String dataSourceDescription, String dataSourceID);

    // 删除数据源
    void delete(String dataSourceId);
}
